home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
me_cd25.zip
/
MUTT2.ZIP
/
MAX.MUT
< prev
next >
Wrap
Lisp/Scheme
|
1992-11-09
|
262b
|
13 lines
;; max.mut : find the the maximum of a list of numbers
;; eg (max 1 2 3 4 5) returns 5
;; C Durland Public Domain
(defun max HIDDEN
{
(int n i)
(i (- (nargs) 1))(n (arg i))
(while (>= (-= i 1) 0) (if (< n (arg i)) (n (arg i))) )
n
})